package com.aspose.cells;

class zaes extends zaep {
   private com.aspose.cells.b.a.d.zm b;
   private com.aspose.cells.b.a.d.zn c;
   private char d;
   private String e;

   public zaes() {
   }

   public zaes(String var1) {
      this.e = var1;
   }

   public static boolean a(char var0) {
      return "\t\n\r ".indexOf(var0) != -1;
   }

   public void e() throws Exception {
      while(!this.f()) {
         if (!a(this.m())) {
            return;
         }

         this.j();
      }

   }

   public boolean f() throws Exception {
      return this.c.c() == -1;
   }

   public String g() throws Exception {
      StringBuilder var1 = new StringBuilder();
      this.e();

      while(!this.f()) {
         if (this.m() == ':') {
            this.j();
            break;
         }

         if (this.m() != 0 && this.m() != '\r' && this.m() != '\n' && this.m() != '\t') {
            var1.append(this.m());
            this.j();
         } else {
            this.j();
         }
      }

      this.e();
      return var1.length() == 0 ? null : com.aspose.cells.b.a.zr.a(var1).trim();
   }

   public String h() throws Exception {
      StringBuilder var1 = new StringBuilder();
      this.e();

      while(!this.f() && this.m() != '\n' && this.m() != '\r' && this.m() != '\t' && this.m() != '}') {
         if (this.m() == ';') {
            this.j();
            if (this.m() == '\n' || this.m() == '\r' || this.m() == '\t' || this.m() == '}' || this.m() == ' ') {
               break;
            }

            var1.append(';');
         }

         var1.append(this.m());
         this.j();
      }

      this.e();
      return var1.length() == 0 ? null : com.aspose.cells.b.a.zr.a(var1).trim();
   }

   public void a(String var1, String var2) {
      zaeo var3 = new zaeo(var1, var2);
      this.a(var3);
   }

   public void i() throws Exception {
      this.d = (char)this.c.d();
   }

   public void j() throws Exception {
      this.i();
   }

   public com.aspose.cells.b.a.d.zm k() {
      return this.b;
   }

   public void a(com.aspose.cells.b.a.d.zm var1) throws Exception {
      this.b = var1;
      this.c = new com.aspose.cells.b.a.d.zn(this.b, Encoding.getEncoding("gb2312"));
   }

   public String l() {
      return this.e;
   }

   public char m() {
      return this.d;
   }
}
